package com.example.myapplication;


import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.myapplication.utils.WebViewUtils;

public class ExeceriseActivity extends AppCompatActivity {
    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_excerise);
        webView = findViewById(R.id.web1);
        Intent intent = getIntent();
        String title = intent.getStringExtra("标题");
        String url = intent.getStringExtra("链接");
        webView.loadUrl(url);

        TextView textView = findViewById(R.id.exe_title);
        textView.setText(title);

        WebViewUtils.setWebViewSettings(webView);
        WebViewUtils.setWebViewClient(webView);

    }
}
